import { httpJson } from "@/request/http";
// 网络请求demo 列子

// 获取当前项目信息
// export const getCurrentProjectInfo = {
//     url: "projectInfoApp/getCurrentProjectInfo",
//     method: "get",
//     isLoading: true
// }

const getCurrentProjectInfo = (params) => {
    return httpJson({
        url: "projectInfoApp/getCurrentProjectInfo",
        method: "get",
        isLoading: true
    }, params)
};
//注册用户
///
const registerUser = (params) => {
    return httpJson({
        url: "/api/localuser!registerNoVerifcode.action",
        method: "get",
        isLoading: true
    }, params)
};
//登录
const loginUser = (params) => {
    return httpJson({
        url: "/api/user!login.action",
        method: "get",
        isLoading: true
    }, params)
};


/// 发送邮箱 手机验证码
const sendVerifyCode = (params) => {
    return httpJson({
        url: "/api/idcode!execute.action",
        method: "get",
        isLoading: false
    }, params)
};

/// 帮助中心
const helpCenter = (params) => {
    return httpJson({
        url: "/api/cms!list.action",
        method: "get",
        isLoading: false
    }, params)
};
const apiList = {
    getCurrentProjectInfo, registerUser, sendVerifyCode, loginUser, helpCenter
}

export default apiList
